package com.wg.msorderds.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("useraddress")
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户地址表")
public class UserAddress implements Serializable {
    @Schema(description = "地址ID")
    @TableId(type = IdType.AUTO)
    private Integer Id;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "收件人姓名")
    private String receiver;

    @Schema(description = "收件人电话")
    private String phone;

    @Schema(description = "省份")
    private String province;

    @Schema(description = "城市")
    private String city;

    @Schema(description = "县")
    private String district;

    @Schema(description = "详细地址")
    private String detail;

    @Schema(description = "是否默认地址")
    private Boolean isDefault;
}